/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Client;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

/**
 *
 * @author MinhVu
 */
public class Client {
    public static void main(String[] argc) throws IOException
    {
        Socket Client = new Socket("localhost",1234);
        System.out.println("connect to server");
        DataOutputStream out = new DataOutputStream(Client.getOutputStream());
        out.writeUTF("Hello Server");
    }
}
